{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>店铺介绍</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			{include file="agent/top"}
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('detail')}">
				<input type="hidden" name="id" value="{$ad.id}" />
				
				<!--店铺介绍-->
				<div class="form-group">
					<label class="col-sm-2 control-label">店铺公告：</label>
					<div class="input-group col-sm-8">
						<textarea id="notice" rows="5" style="width: 500px;" placeholder="多行文本框">{$ad.notice}</textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">店铺介绍：</label>
					<div class="input-group col-sm-8">
						<textarea id="content" name="content"  style="height: 400px;">				
							{$ad.content}
						</textarea>
					</div>
				</div>
				<!--店铺介绍end-->
				<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>
						</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script src="__LIB__/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__LIB__/ueditor/ueditor.all.js" type="text/javascript"></script>
<script>
	//编辑器
	var ueditor = UE.getEditor('content');
	//顶部导航
	$("#li-bar-detail").addClass("active");
	$(function() {
		$("#myForm").validate({
			rules: {
			},
			messages: {
			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
{/block}